//
//  QYRemindMassage.h
//  ocDemo
//
//  Created by Joggy on 16/3/29.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import <UIKit/UIKit.h>

#define QYWidth [UIScreen mainScreen].bounds.size.width
#define QYHeight 25
#define QYLabelFont 13

//typedef void (^bloke)(int a, int b);

@interface QYNotice : UIView

@property(nonatomic, retain) UILabel *label;
@property(nonatomic, retain) NSTimer* timer;

-(instancetype)init;
-(void)show;
+(QYNotice*)shared;
+(void)showSuccess:(NSString*)title toView:(UIView*)view;
+(void)showWarning:(NSString*)title toView:(UIView*)view;
+(void)showError:(NSString*)title toView:(UIView*)view;
+(void)showProcess:(NSString*)title toView:(UIView*)view;
+(void)dismissWithDelay:(double)time;
+(void)dismissWithDelay:(double)time completed:(void (^)())completeBlock;

@end
